<template>
	<view class="wrap">
		<view class="list-wrap" v-for="(item,index) in pList" :key="index">
			<view class="left">
				<view class="dot">
					
				</view>
				<view class="info">
					<view class="top">手续费</view>
					<view class="time">
						2021-07-21 12:34:00
					</view>
				</view>
			</view>
			<view class="right">
				100
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
				pList:[]
			}
		},
		onLoad() {
			this.getData()
		},
		onNavigationBarButtonTap:function(e){
			if(e.index==1){
				uni.navigateTo({
					url: '../tibimingxi/index'
				});
			}else{
				uni.navigateTo({
					url: '../bizhongmingxi/index'
				});
			}
		               
		 },
		methods: {
			getData(){
				let that=this
				
				
				
				
				// if(this.jy_pwd==''){
				// 	uni.showToast({
				// 	    title: '请设置支付密码',
				// 	    duration: 2000,
				// 		icon:'none'
				// 	});
				// 	return
				// }
				
				
				
				
				
				
				that.apipost('/api/assets/history').then(res => {
					if(res.Code==10200){
						let data=res.Data
						that.pList=data
						
					}
					
				}).catch(err=>{
					console.log(err)
				});
				
			},
			enterpage(path){
				if(path){
					uni.navigateTo({
					    url: path
					});
				}else{
					uni.showToast({
					    title: '暂未开放',
					    duration:4000,
						icon:'none'
					});
				}
			}
		}
	}
</script>

<style>
	.time{
		color:#b3cef9;
		margin-top:10rpx;
	}
	
	.list-wrap .dot{
		background:#fff;
		height:22rpx;
		border-radius:50%;
		margin-right:28rpx;
		width:22rpx;
	}
	.list-wrap .left{
		display:flex;
		align-items: center;
	}
	.list-wrap{
		height:136rpx;
		display:flex;
		align-items: center;
		justify-content: space-between;
		background:linear-gradient(to bottom,#4466ee,#7791ff);
		border-radius:10rpx;
		color:#fff;
		padding: 0 40rpx 0 18rpx; 
	}
	page{
		background:#f4f6f5;
	}
	.wrap{
		padding:24rpx;
	}
</style>
